import './index.css';
import './index.less';
import './accest/font/iconfont.css';
import print from './print';
// eslint-disable-next-line no-console
console.log('22332222222222');
// eslint-disable-next-line no-console
const a = () => {
  // eslint-disable-next-line no-console
  console.log('xxx');
};
a();

new Promise((resolve) => {
  resolve('122333');
}).then((res) => {
  // eslint-disable-next-line no-console
  console.log(res);
});
print();

if (module.hot) {
  // 这样写就是监听printjs文件的变化  一旦发生变化  其他模块不会重新打包构建
  // 入口文件没办法热更新
  module.hot.accept('./print.js', () => {
    print();
  });
}
